package order

import (
	"gorm.io/gorm"
	"gysa-share01/models"
)

type Order struct {
	gorm.Model
	UserId    int64  `gorm:"index;"`
	Price     uint64 `gorm:"default:0;type:BIGINT not null;"`
	PayStatus int8   `gorm:"default:0;"`
}

const (
	PAY_STATUS_NOT_PAY models.EnumNum = 0
	PAY_STATUS_PAY     models.EnumNum = 1
)

var (
	PAY_STATUS_MAP = map[models.EnumNum]string{
		PAY_STATUS_NOT_PAY: "未支付",
		PAY_STATUS_PAY:     "已支付",
	}
)
